from the parent. Improve error when build w/o USB.
(echo -n "internal_styles.c: mkstyle.sh " ; echo style/*.style ; /bin/echo -e '\t./mkstyle.sh > internal_styles.c || (rm -f internal_styles.c ; exit 1)' ) >> /tmp/dep
echo Edit Makefile and bring in /tmp/dep
-VERSIONU=1_2_4_beta10132004
-VERSIOND=1.2.4_beta10132004
+VERSIONU=1_2_4_beta10162004
+VERSIOND=1.2.4_beta10162004
#VERSIONU=1_2_3
#VERSIOND=1.2.3
#include "garminusb.h"
+const char no_usb[] = "USB suport is not available in this build.\n";
int
gusb_cmd_send(const garmin_usb_packet *obuf, size_t sz)
{
- fatal("USB support is not available");
+ fatal(no_usb);
}
int
gusb_cmd_get(garmin_usb_packet *ibuf, size_t sz)
{
- abort();
+ fatal(no_usb);
}
int
gusb_open(const char *portname)
{
- abort();
+ fatal(no_usb);
}
int
gusb_init()
{
- abort();
+ fatal(no_usb);
}
int
include ../Makefile
CFLAGS=-Iinclude -I../coldsync -O $(INHIBIT_USB)
-# INHIBIT_USB=-DNO_USB
+#
+# Must define empty (don't comment out the whole line) if you want to
+# override INHIBIT_USB from the parent Makefile.
+#
+INHIBIT_USB=#-DNO_USB
OSJEEPS=jeeps/gpsusbwin.o
gpsbabel.exe: $(OBJS)